<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/4/13
 * Time: 11:34
 */

namespace App\Http\Controllers;


use App\Model\Account;
use App\Model\Group;
use App\Model\Upload;
use App\Services\AlibabaServices;
use App\User;

class HomeController extends Controller
{
    public function index(){
//         echo bcrypt('123456');die;

        dd(Account::query()->first()->toArray());

        $group = Group::with('groupQrcode')->first();
        var_dump($group->groupQrcode->toArray());die;

        $model = new User();
        $info = $model->with('test')->first();
        var_dump($info->test->title);die;
        $photo = Upload::with('user')->where(['id'=>2])->get();
        var_dump($photo);
    }

    public function alimsg(){
        $ali = new AlibabaServices();
        $result = $ali->sendCode('15205857505');
        var_dump($result);
    }
}
